//package com.lagou.edu.common;
//
//import org.springframework.security.oauth2.provider.OAuth2Authentication;
//import org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter;
//import org.springframework.stereotype.Component;
//
//import java.util.Map;
//
///**
// * @ClassName MyAccessConverter
// * @Description TODO
// * @Auth ying.xiao
// * @Date 2021/4/25
// * @Version 1.0.0
// */
//@Component
//public class MyAccessConverter extends DefaultAccessTokenConverter {
//    @Override
//    public OAuth2Authentication extractAuthentication(Map<String, ?> map) {
//        OAuth2Authentication oAuth2Authentication = super.extractAuthentication(map);
//        oAuth2Authentication.setDetails(map);
//        return oAuth2Authentication;
//    }
//}
